package cn.zhage.aimin.base.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;

/**
 * @author 武天奇
 * @version 1.0
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = true)
public class BusinessException extends RuntimeException{

    @Serial
    private static final long serialVersionUID = 1L;

    private String message;

    public static BusinessException of(String message){return new BusinessException(message);}
    public BusinessException(String message){
        this.message = message;
    }




}
